from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
import time
driver = webdriver.Chrome()
driver.get('https://passport.szlcsc.com/login?service=https%3A%2F%2Fmember.szlcsc.com%2Fmember%2Flogin.html%3Fs%3D%26c%3D%26f%3Dshop')
time.sleep(2)
driver.find_element_by_xpath('/html/body/div/div[2]/div/div/div/div[1]/div[2]/span').click()
time.sleep(1)
driver.find_element_by_id('username').send_keys('17631981071')
time.sleep(0.5)
driver.find_element_by_id('password').send_keys('hyt123456')
time.sleep(1)
driver.find_element_by_xpath('/html/body/div/div[2]/div/div/div/div[3]/div/form/div[4]/input').click()
time.sleep(3)
driver.find_element_by_xpath('/html/body/div[9]/div/div/i').click()
time.sleep(0.5)
driver.find_element_by_xpath('/html/body/header/div[4]/div/div[3]/div[1]/form/input[1]').send_keys('扳手')
driver.find_element_by_xpath('/html/body/header/div[4]/div/div[3]/div[1]/form/input[3]').click()
time.sleep(2)
driver.get_screenshot_as_file('123.png')


time.sleep(5)
driver.quit()